package com.hbnu.service;

import com.hbnu.dao.OrderDao;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class OrderService {
    //@Autowired
    @Resource(name = "orderDao")  //讲数据层对象orderDao注入业务层对象
    private OrderDao orderDao;


    @Value("JD68791684916794")
    public String orderNo;
    @Value("小米15，华为p50,Ipad 2023")
    public String[] orderPro;

    public  void addOrder(){
        System.out.println("业务添加订单的方法......");
        orderDao.addOrder();
    }
}
